<div class="content" id="products">

<?php 
//$args = array( 'post_type' => 'product', 'posts_per_page' => 10 );
//query_posts($args);
//$loop = new WP_Query( $args );
//while ( $loop->have_posts() ) : $loop->the_post();
 
if (have_posts()) : while (have_posts()) : the_post(); ?>
    

<div class="product_box">
    

<h1 id="single"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>



<div class="featured_image" id="single">
    
<?php 
$feat_src = "#"; 

if (has_post_thumbnail()) 
    {
    $feat_src = mm_featured_src();
    }

?>
    

<a href="<?php echo $feat_src; ?>">
    
<?php 

if (has_post_thumbnail()) 
{  
the_post_thumbnail('featured_product'); 
} 

?>

</a></div><!-- featured image -->

<?php
// get custom field values

$gpj_price = get_post_meta($post->ID, 'gpj_price', true);

$gpj_description = get_post_meta($post->ID, 'gpj_description', true);

$gpj_title = get_the_title();

if($gpj_price == '') 
{
  $gpj_price = "value not set";
}

if($gpj_description == '') 
{
  $gpj_description = "value not set";
} 
?>

<div class="gpj_description"><?php echo $gpj_description; ?></div>

<div class="gpj_price"><?php echo $gpj_price; ?></div>

<?php

echo print_wp_cart_button_for_product("$gpj_title", $gpj_price);
     
//echo do_shortcode("[wp_cart:$gpj_title:price:$gpj_price:end]");

//echo do_shortcode("[gravityforms id=1 title='false' description='false' field_values='gpj_price=$gpj_price&gpj_title=$gpj_title']");
?>

<div class="product_the_content">
    







</div>


</div><!-- product box -->


<?php endwhile; endif; ?>


<div class="pushbottom"></div>


</div><!-- content #single -->